package cn.ante.org.mapper;

import cn.ante.basic.mapper.BaseMapper;
import cn.ante.org.domain.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EmployeeMapper extends BaseMapper<Employee> {

    Employee loadByName(String username);

    Employee loadBySd(Integer shopId);

    void removeRole(Long id);

    void saveRole(@Param("id") Long id, @Param("roles") List<Long> roles);

    Employee loadByLoginifoId(Long id);
}
